import request from '@/utils/request'

/**
 * 采集列表
 */
export function getSampleList(params) {
  return request({
    url: '/gene/reserve/sampleList',
    method: 'GET',
    params: params
  });
}

/**
 * 导出
 * @param ids
 * @returns {AxiosPromise}
 */
export function exportByIds(ids) {
  return request({
    url: '/gene/reserve/export/' + ids,
    method: 'POST'
  });
}

/**
 * 条码列表
 * @param params
 * @returns {AxiosPromise}
 */
export function getGeneBloodPackRepertory(params) {
  return request({
    url: '/gene/blood-pack-repertory/list',
    method: 'GET',
    params: params
  });
}

/**
 * 通过id查询所属的血包
 * @param params id
 * @returns {AxiosPromise}
 */
export function getBloodPackRepertoryCodeById(params) {
  return request({
    url: '/gene/blood-pack-repertory/getBloodPackRepertoryCodeById',
    method: 'GET',
    params: params
  });
}

/**
 * 新增打印条码
 */
export function addBloodPackRepertory(data) {
  return request({
    url: '/gene/blood-pack-repertory/addBloodPackRepertory',
    method: 'POST',
    data: data
  });
}
